package utilx

import "cmp"

func Swap[T cmp.Ordered](data []T, a, b int) {
	data[a], data[b] = data[b], data[a]
}
